﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class _Default : System.Web.UI.Page
{
    //public _Default()
    //{
    //    //当page指令中的属性AutoEvent--为false时注册事件相应的处理方法
    //    PreInit += Page_PreInit();

    //}

    protected void Page_PreInit(object sender, EventArgs e)
    {
        Response.Write("调用PreInit处理方法调用Page_PreInit<br>");

    }
    protected void Page_Load(object sender, EventArgs e)
    {
        Response.Write("调用Load事件处理方法Page_Load<br>");
        Response.Write(IsPostBack + "<br>");
    }
    protected void Page_PreLoad(object sender, EventArgs e)
    {
        Response.Write("调用Load事件处理方法Page_PreLoad<br>");

    }
    protected void Page_Init(object sender, EventArgs e)
    {
        Response.Write("调用Init事件处理方法Init<br>");

    }
    protected void Page_InitComplete(object sender, EventArgs e)
    {
        Response.Write("调用Init事件处理方法InitComplete<br>");

    }
    //protected void Page_LoadComplete(object sender, EventArgs e)
    //{
    //    Response.Write("调用Init事件处理方法Page_LoadComplete<br>");

    //}


    protected void Button1_Click(object sender, EventArgs e)
    {
        Response.Write("Button1控件点击事件<br>");
    }

    protected void Button1_Load(object sender, EventArgs e)
    {
        Response.Write("Button1控件加载事件<br>");
    }
}